/**
 * 
 */
package by.jtraining.london.model;

import java.io.Serializable;

import javax.persistence.Entity;

import com.google.common.base.Objects;

/**
 * @author Irina Pakhomova
 *
 */
@Entity
public class Lector extends User implements Serializable{
	private static final long serialVersionUID = 8742752147732422L;
	
	private Course course;
	public Lector() {}
	public Lector(String firstName, String lastName,  String email, String password, Course discipline) {
		super(firstName, lastName, email, password, false);
		this.course=discipline;
	}
	public Course getCourse() {
		return course;
	}
	public void setCourse(Course course) {
		this.course = course;
	}
	@Override
	public String toString() {
		return Objects.toStringHelper(this).add("id", getId())
				.add("First name", getFirstName()).add("Last name", getLastName())
				.add("name of course", getCourse()).add("is active", getIsActive())
 				.add("login", getLogin()).toString();
	}
	
}
